package 压力测试

import "fmt"

func GetSum(num int) {
	var sum int
	for i := 0; i < num; i++ {
		sum += i
	}
	fmt.Println(sum)
}

func Fib(n int) int{
	if n == 1 {
		return 0
	} else if n == 2{
		return 1
	}
	return Fib(n-1) + Fib(n-2)
}

func main()  {
	GetSum(5)
	fmt.Println(Fib(6))
}
